package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_exam_evaluation
 */
@TableName(value ="t_exam_evaluation")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExamEvaluation implements Serializable{
    /**
     * key自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试卷id
     */
    @TableField(value = "paper_id")
    private Integer paperId;

    /**
     * 学生id
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 试卷得分
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 对此学生的试卷评价
     */
    @TableField(value = "message")
    private String message;

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "upload_time", fill = FieldFill.INSERT_UPDATE)
    private Date uploadTime;

    @TableField(value = "is_mark")
    private Integer isMark;

    /**
     * 是否发布(0：未发布 1：已发布)
     */
    @TableField(value = "is_publish")
    private Integer isPublish;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}